package com.example.aircraftticketingsystemserver.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 
 * </p>
 *
 * @author lxz
 * @since 2024-08-05
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Flight implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "flight_id", type = IdType.AUTO)
    private Integer flightId;

    private String flightNumber;

    private String departureCity;

    private String arrivalCity;

    private String departureAirport;

    private String arrivalAirport;
    private String status;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String departureTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String arrivalTime;
    private String airline;
}
